<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WEUI 源码学习</title>
    <style>
        /* css reset */
        * {
            margin: 0;
            padding: 0;
            outline: 0;
            /* outline 轮廓 不影响盒子模型计算 */
        }

        /* inherit 会继承的css */
        html {
            /* ie */
            -ms-text-size-adjust: 100%;
            /* chrome 为首 ， 360... */
            /* 控制将一些手机或平板设备上使用的文本溢出算法  100% 会增加文本大小，但是不会修改布局 */
            -webkit-text-size-adjust: 100%;
        }

        body,
        html {
            height: 100%;
            /* 按上时高亮颜色 移动端*/
            /* transparent 统一干掉高亮 */
            -webkit-tap-highlight-color: transparent;
            background-color: var(--weui-BG-0);
        }

        body {
            /* 默认添加 苹果字体 */
            font-family: -apple-system-font, Helvetica Neue, Helvetica, sans-serif;
            --weui-BG-0: #111;
            --weui-BG-2: #191919;
            --weui-FG-0: rgba(255, 255, 255, .9);
            --weui-FG-1: rgba(255, 255, 255, .5);
            --weui-FG-1: rgba(255, 255, 255, .3);
            --weui-FG-3: color: rgba(255, 255, 255, .1);
        }

        .page,
        body {
            /* css4 变量  多次使用 方便统一改 方便复用 （定义在body）*/
            background-color: var(--weui-BG-0);
        }

        a {
            text-decoration: none;
        }

        .weui-cells__title {
            margin-top: 16px;
            margin-bottom: 3px;
            padding-left: 16px;
            padding-right: 16px;
            /* color: rgba(0, 0, 0, 0.5); */
            color: var(--weui-FG-1);
            font-size: 14px;
            line-height: 1.4;
            /* px 小数部分舍去 */
        }

        /* 兄弟选择器 落在后面那个元素 */
        .weui-cells__title+.weui-cells {
            margin-top: 0;
        }

        .weui-cells {
            margin-top: 8px;
            background-color: var(--weui-BG-2);
            overflow: hidden;
            position: relative;
        }

        .weui-cells:before {
            content: " ";
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            height: 1px;
            /* border-top: 1px solid rgba(0, 0, 0, 0.1); */
            border-top: 1px solid var(--weui-FG-3);
            /* color: rgba(0, 0, 0, 0.1); */
            color: var(--weui-FG-3);
            -webkit-transform-origin: 0 0;
            transform-origin: 0 0;
            /* 超清手机 gpu设置缩放1px以下的样式 */
            /* 有声明浏览器的前缀的属性写在上面 以便正式属性覆盖实验阶段属性！ */
            -webkit-transform: scaleY(0.5);
            transform: scaleY(0.5);
            z-index: 2;
        }

        .weui-cell {
            padding: 16px;
            position: relative;
            /* 弹性布局 早期叫box布局 为兼容老浏览器 */
            display: -webkit-box;
            display: -webkit-flex;
            display: flex;
            /* 纵轴的对齐方式 默认垂直 */
            -webkit-box-align: center;
            -webkit-align-items: center;
            align-items: center;
            /* 8位 */
            line-height: 1.41176471;
            font-size: 17px;
            /* color: rgba(0, 0, 0, 0.9); */
            color: var(--weui-FG-0);
        }

        .weui-cell__bd {
            /* 主元素 flex: 1; */
            -webkit-box-flex: 1;
            -webkit-flex: 1;
            flex: 1;
            min-width: 0;
        }

        .weui-cell__ft {
            text-align: right;
            color: var(--weui-FG-1);
        }

        .weui-cell_access .weui-cell__ft::after {
            content: '';
            display: block;
            width: 8px;
            height: 8px;
            border-top: 1px solid white;
            border-right: 1px solid white;
            transform: rotate(45deg);
        }

        .weui-cell__desc {
            font-size: 12px;
            color: var(--weui-FG-2);
            line-height: 1.4;
            padding-top: 4px;
        }

        /* .test {
            -webkit-tap-highlight-color: skyblue;
        } */
    </style>
</head>

<body>

    <!-- <a href="javascript:" class="test">test:tap-highlight-color</a> -->

    <div class="weui-cells__title">设置</div>
    <div class="weui-cells">
        <div class="weui-cell">
            <div class="weui-cell__hd">
                <img src=""
                    alt="" style="width: 20px; margin-right: 16px; display: block;">
            </div>
            <div class="weui-cell__bd">服务网络</div>
            <div class="weui-cell__ft">打开</div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd">
                <img src=""
                    alt="" style="width: 20px; margin-right: 16px; display: block;">
            </div>
            <div class="weui-cell__bd">通用设置</div>
            <div class="weui-cell__ft">打开</div>
        </div>
        <div class="weui-cells__title">设置</div>
        <div class="weui-cells">
            <div class="weui-cell weui-cell_access">
                <div class="weui-cell__hd">
                    <img src=""
                        alt="" style="width: 20px; margin-right: 16px; display: block;">
                </div>
                <div class="weui-cell__bd">蓝牙</div>
                <div class="weui-cell__ft"></div>
            </div>
        </div>
        <div class="weui-cells__title">带跳转的标题项</div>
        <div class="weui-cells">
            <div class="weui-cell weui-cell_access">
                <div class="weui-cell__bd">
                    <span>好耶</span>
                    <div class="weui-cell__desc">副标题</div>
                </div>
                <div class="weui-cell__ft"></div>
            </div>
        </div>
    </div>

</body>

</html>